<%@ page language="java" contentType="text/html; charset=UTF-8"
		 pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>确认挂号</title>
<style>
    #main{margin:0 auto;width:50%}
	 table{width:100%;border-spacing: 10px 30px;border-top:1px solid #ccc;border-bottom:1px solid #ccc}
	 th{border-bottom:2px solid #ccc;}
	 td{text-align:left}
	 tr td:first-child{text-align:right;width:30%}
	 tr:last-child td:last-child{padding-left:20px}
	 h1{text-align:center}
	 input[type=text]{border-width:0px 0px 2px 0px;border-color:black}
	 input:focus{border-color:red}
	 #pay{cursor: pointer;margin:0 auto;color:white;text-align:center;border-radius:50px;height:100px;width:100px;background-color:blue;font-size:20px;font-family:微软雅黑}
</style>
<script>
    
</script>
</head>
<body>
     <div id="main">
	 
      <h1>确认挂号</h1>
      
		   <table>
		     <tbody>
			 <tr>
   			   <td>科室</td>
			   <td>${plan.doctor.dept.dept_name}(${plan.doctor.dept.dept_loc} tel:${plan.doctor.dept.dept_phone}) </td>
			  </tr>
			  <tr>
   			   <td>医生姓名</td>
			   <td>${plan.doctor.doc_name}(${plan.doctor.doc_job})</td>
			  </tr>
			  <tr>
			    <td>时间</td>
				<td>
					<fmt:formatDate value="${plan.plan_workdate}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
			  </tr>
			  <tr>
   			   <td colspan="2">
			      <div id="pay" onclick="if(confirm('你确认付款吗?')) if(${plan.plan_bookcount>0}){location.href='/hospital/Plans/alipay/${plan.plan_id}'}else{alert('当前时间挂号已满！');location.href='/hospital_war/Plans/list/${plan.plan_docid}'}">
				    <span>
					<br>
				     ￥20.0<br>
					 付款
					</span>
				  </div>
			   </td>
			  </tr>
			 
			 
			</tbody>
		   </table>
   
      </div>

</body></html>